import request from '@/utils/request'

// 货主分页查询
export const getCarrierList = (params: any) =>
  request({
    url: '/carrier/page',
    method: 'get',
    params
  })

// 货主详情
export const getListDetails = (id: any) =>
  request({
    url: `/carrier/${id}`,
    method: 'get'
  })

// 删除
export const deleteCarrier = (params: any) =>
  request({
    url: '/carrier',
    method: 'delete',
    params
  })
// 新增
export const addCarrier = (data: any) =>
  request({
    url: '/carrier',
    method: 'post',
    data
  })
// 编辑
export const updateCarrier = (data: any) =>
  request({
    url: '/carrier',
    method: 'put',
    data
  })
